import QtQuick 2.7
import QtQuick.Controls 2.1
import QtQuick.Layouts 1.0
import QtQuick.Window 2.2
import QtQuick.Controls.Material 2.1
    Item{
        anchors.fill: parent
        RowLayout{
            anchors.left:parent.left
            anchors.top:parent.top
            ComboBox{
                id:comboques
                anchors.horizontalCenter: parent.horizontalCenter
                model: ["HTML+CSS基础", "深入.NET平台和C#"]

            }
            Button{
                text:"开始答题"
                anchors.top:comboques.bottom
                anchors.horizontalCenter: parent.horizontalCenter
                onClicked:
              { console.log(comboques.currentIndex)
                     if(comboques.currentIndex==0)
                     {
                        otherTabStackView.push("qrc:/answers/answerDetail.qml",{"kid":9})
                    }else if(comboques.currentIndex==1)
                     {
                       otherTabStackView.push("qrc:/answers/answerDetail.qml",{"kid":8})
                    }
                }

                font.pixelSize: 6*dp
                Layout.preferredHeight: dp*30
                Layout.preferredWidth: dp*30
           }
            Button{
                text:"返回上一级"
                onClicked: {
                     otherTabStackView.pop();
                }
            }
      }
 }

